package bbalgae.swing.outline;

import java.awt.FlowLayout;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.SwingUtilities;

public class J12_FlowLayout extends JFrame {

	public   J12_FlowLayout(){
		setDefaultLookAndFeelDecorated(true);
		setTitle("Flow layout-수평배치");
		setLayout(new FlowLayout(FlowLayout.CENTER,40,40));
		setBounds(250,250,680,480);
		
		for(int i=1; i<=10; i++){
			add(new JButton("버튼"+i));
		}
		setVisible(true);
	}
	
	public static void main (String[] args){
		SwingUtilities.invokeLater(new Runnable() {
			
			@Override
			public void run() {
				new J12_FlowLayout();
			}
		});
	}
}
	